module(..., package.seeall)

require "misc"
require "powerKey"
require "idle"
require"register"

local function longCb()
    log.info("longCb","longCb")
    register.start()
end

local function shortCb()
    log.info("shortCb","?shortCb")
    misc.setSn("MT04202003130001", cbFnc)
    prompt.open(misc.getSn(),misc.getVbatt(),misc.getImei(),idle.open)
end

powerKey.setup(3000,longCb,shortCb,nil,nil,5000)